space separated dictionary input in python

42

d = {}
for i, v in enumerate(input().split()):
    d[i] = v

Comments

Submit
0 Comments